package Day8;

import Day5.Dog;
import Day7.Mouse;

/**
 * @Author kalista
 * @Description
 * @Date 2020/11/12  10:20
 **/
public class Test {

    public static void main(String[] args) {

//        int a = 10;
//        int b = 20;
//        System.out.println(a == b);

//        String aa = new String("aaaa");
//        String bb = new String("aaaa");
//
//        System.out.println(aa.equals(bb));

//        Person person1 = new Person("wangcc",18);
//        Person person2 = new Person("wangcc",12);
//        System.out.println(person1.getName().equals(person2.getName()));

//        System.out.println(person1 == person2);
//        System.out.println(person1.equals(person2));


//        Mouse mouse = new Mouse("",154);
//
//        Object obj = mouse;
//
//
//        System.out.println( obj instanceof  Mouse);
//        System.out.println( obj instanceof Dog);

//
//        Student student = new Student();
//        student.eat();

        Person person = new Person() {
            @Override
            public void eat() {
                System.out.println("哈哈哈啊哈哈吃");
            }
        };


        person.eat();


    }


}
